//
//  LJAddressPicker.h
//  ReceiptDelivery
//
//  Created by 吕晶 on 2020/9/3.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LJAddressProvinceModel;

NS_ASSUME_NONNULL_BEGIN

typedef void(^LJAddressPickerFinishBlock)(LJAddressProvinceModel *province,LJAddressProvinceModel *city,LJAddressProvinceModel *town);

@interface LJAddressPicker : UIView

/** 省 */
@property (nonatomic, strong) LJAddressProvinceModel *province;
/** 市 */
@property (nonatomic, strong) LJAddressProvinceModel *city;
/** 区 */
@property (nonatomic, strong) LJAddressProvinceModel *town;
@property (nonatomic, copy) LJAddressPickerFinishBlock finishBlock;
- (void)updateAddressAtProvince:(NSString *)province city:(NSString *)city town:(NSString *)town;
/** 内容字体 */
@property (nonatomic, strong) UIFont *font;

- (void)pickerViewShow;

@end

@interface LJAddressProvinceModel : NSObject

@property (nonatomic, copy) NSString *Id;
@property (nonatomic, copy) NSString *pid;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) NSArray <LJAddressProvinceModel *>*children;

@end

NS_ASSUME_NONNULL_END
